package com.gecba.system.entity;

import com.gecba.modular.jpa.annotion.GeneratedWorkId;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author ChenBo
 * @className SysRolePermission
 * @date 2021/7/25
 */
@Data
@Entity
@Table(name = "sys_role_permission")
public class SysRolePermission implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    @Id
    @GenericGenerator(name = "idWorker", strategy = "com.gecba.modular.jpa.IdWorkerGenerator")
    @GeneratedValue(generator = "idWorker")
    private Long id;
    /** 权限菜单ID  */
    private Long permissionId;
    /** 角色ID */
    private Long roleId;
}
